package com.junzerg.tooltip.controller;

import com.alibaba.fastjson.JSONObject;
import com.junzerg.tooltip.component.ConfigComponent;
import com.junzerg.tooltip.component.ConvComponent;
import com.junzerg.tooltip.controller.request.ConvRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author pengjz <br>
 * @version 1.0 <br>
 * @description ConfigController <br>
 * @date 2022/4/10 15:01 <br>
 */
@RestController
@RequestMapping(value = "/config")
@Slf4j
@ResponseBody
public class ConfigController extends BaseController {
    @Resource
    ConfigComponent component;

    @GetMapping("/conv/announcement")
    public Object getConvAnnouncement() {
        log.info("[getConvAnnouncement]");
        return success(component.getConvAnnouncement());
    }
}
